package me.yobol.greentable.dao;

import java.sql.Connection;
import java.sql.SQLException;

import me.yobol.greentable.bean.WorkerBean;

/**
 * @author Yobol
 *
 */
public interface IWorkerDAO {
	public int save(Connection ctn, WorkerBean worker) throws SQLException;
	
	public WorkerBean delete(Connection ctn, int userId) throws SQLException;
	
	public void updateApprovalStatus(Connection ctn, int userId, int approvalStatus) throws SQLException;
	
	public WorkerBean get(Connection ctn, int workerId) throws SQLException;
	public WorkerBean getByUserId(Connection ctn, int userId) throws SQLException;
}